﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class TestCase_TestClientMode : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.dotNetFlexGrid1.InitConfig(
           new string[]{
                "title=false",//标题
                "singleselected=false",//是否单选
                "resizable=false",//是否可以调整大小
                "usepager=true",//使用分页器
                "showcheckbox=true",//显示复选框
                "height=200",//高度，可为auto或具体px值
                "width=auto",//宽度，可为auto或具体px值
                "striped=true",//是否显示行交替色
                "selectedonclick=false"//是否点击行自动选中checkbox
            },
           new dotNetFlexGrid.FieldConfig[]{
                new dotNetFlexGrid.FieldConfig("Guid","编号",60,true,dotNetFlexGrid.FieldConfigAlign.Left,false,true,true),
                new dotNetFlexGrid.FieldConfig("String1","字段1",120,true,dotNetFlexGrid.FieldConfigAlign.Right),
                new dotNetFlexGrid.FieldConfig("String2","字段2",60,true,dotNetFlexGrid.FieldConfigAlign.Left),
                new dotNetFlexGrid.FieldConfig("String3","字段3",60,true,dotNetFlexGrid.FieldConfigAlign.Left),
                new dotNetFlexGrid.FieldConfig("String4","字段4",60,true,dotNetFlexGrid.FieldConfigAlign.Left),
                new dotNetFlexGrid.FieldConfig("Int1","字段5",60,true,dotNetFlexGrid.FieldConfigAlign.Left),
                new dotNetFlexGrid.FieldConfig("Int2","字段6",60,true,dotNetFlexGrid.FieldConfigAlign.Left),
                new dotNetFlexGrid.FieldConfig("DateTime","字段7",60,true,dotNetFlexGrid.FieldConfigAlign.Left,false,true,true),
                new dotNetFlexGrid.FieldConfig("Checked","字段8",60,false,dotNetFlexGrid.FieldConfigAlign.Left,true,true,false)
            },
           null,
           null

       );
    }
}
